//
//  MyOrderData.m
//  YaoHeAPP
//
//  Created by xyh on 16/3/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MyOrderData.h"

@implementation MyOrderData
-(id)initWith:(NSDictionary*)dic
{
    self = [super init];
    if (self)
    {
        self.batch_id=dic[@"batch_id"];
        self.buy_type=dic[@"buy_type"];
        self.create_time=dic[@"create_time"];
        
        self.discount_amount=dic[@"discount_amount"];
        self.expired_time=dic[@"expired_time"];
        self.intent_order_code=dic[@"intent_order_code"];
        self.intent_order_id=dic[@"intent_order_id"];
        self.invoice_company=dic[@"invoice_company"];
        self.operator_mobile=dic[@"operator_mobile"];
        self.operator_name=dic[@"operator_name"];
        self.outbound_amount=dic[@"outbound_amount"];
        self.pay_id=dic[@"pay_id"];
        self.pro_data=dic[@"pro_data"];
        self.remark=dic[@"remark"];
        self.sale_order_id=dic[@"sale_order_id"];

        self.short_amount=dic[@"short_amount"];
        self.source_flag=dic[@"source_flag"];
        self.status=dic[@"status"];
        self.status_name=dic[@"status_name"];
        self.total_quantity=dic[@"total_quantity"];
        self.total_sales=dic[@"total_sales"];
        self.total_amount=dic[@"total_amount"];
        self.total_weight=dic[@"total_weight"];
        self.total_payable=dic[@"total_payable"];

        //求购订单
        self.order_code=dic[@"order_code"];
        self.order_id=dic[@"order_id"];
        self.report_status=dic[@"report_status"];
        
        self.isSelected=dic[@"isSelected"];
        
        
    }
    return self;
}

@end
